package com.zhaoyue.study.concurrency.thread.threadfactory;

import java.util.concurrent.TimeUnit;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 2016/9/6
 * Time: 13:37
 * To change this template use File | Settings | File Templates.
 */
public class Task implements Runnable {

    public void run() {
        System.out.println("Hello World!");
        try{
            TimeUnit.SECONDS.sleep(1);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
